<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    <%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html lang="zh-cn">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
<meta name="renderer" content="webkit">
<title></title>
<link rel="stylesheet" href="HNUST/../../user/css/pintuer.css">
<link rel="stylesheet" href="HNUST/../../user/css/admin.css">
<script src="HNUST/../../user/js/jquery.js"></script>
<script src="HNUST/../../user/js/pintuer.js"></script>
  <link rel="stylesheet" type="text/css" href="HNUST/../../dist/css/wangEditor.min.css">
    <script src="HNUST/../../dist/js/lib/jquery-1.10.2.min.js"></script>
<script src="HNUST/../../dist/js/wangEditor.min.js"></script>
<style type="text/css">
        #editor-trigger {
            height: 400px;
            /*max-height: 500px;*/
        }
        .container {
            width: 100%;
            margin: 0 auto;
            position: relative;
        }
    </style>
</head>
<body>
<div class="panel admin-panel margin-top">
  <div class="panel-head" id="add"><strong><span class="icon-pencil-square-o"></span>修改内容</strong></div>
  <div class="body-content">
    <form method="post" class="form-x" action="TavernUp?pageNow=1" enctype="multipart/form-data">
    
    <input type="hidden" name="tavern_id" value="${tavern.tavern_id}"/>
      <div class="form-group">
        <div class="label">
          <label>产品标题：</label>
        </div>
        <div class="field">
          <input type="text" class="input w50" name="tavern_name" value="${tavern.tavern_name }"/>
          <div class="tips"></div>
        </div>
      </div>
       <div class="form-group">
        <div class="label">
          <label>景点图：</label>
        </div>
        <div class="field">
         <img  alt="" id="allUrl" height="200" width="229" src="${tavern.tavern_prcture }"/>
          <input type="file"  name="pic" class="button bg-blue margin-left" value="${tavern.tavern_prcture }"/>
                                          
        </div>
      </div>
        <div class="form-group">
        <div class="label">
          <label>价格：</label>
        </div>
        <div class="field">
          <input type="text" class="input w50" name="tavern_price" value="${tavern.tavern_price}"/>
        </div>
      </div>
       <div class="form-group">
          <div class="label">
            <label>地区：</label>
          </div>
          <div class="field">
            <select name="column_tavern" class="input w50">
              <option value="鼎城区" <c:if test="${tavern.column_tavern=='鼎城区'}">selected="true"</c:if>>鼎城区</option>
              <option value="武陵区" <c:if test="${tavern.column_tavern=='武陵区'}">selected="true"</c:if>>武陵区</option>
              <option value="安乡县" <c:if test="${tavern.column_tavern=='安乡县'}">selected="true"</c:if>>安乡县</option>
              <option value="汉寿县" <c:if test="${tavern.column_tavern=='汉寿县'}">selected="true"</c:if>>汉寿县</option>
              <option value="津市" <c:if test="${tavern.column_tavern=='津市'}">selected="true"</c:if>>津市</option>
              <option value="桃源县" <c:if test="${tavern.column_tavern=='桃源县'}">selected="true"</c:if>>桃源县</option>
              <option value="澧县" <c:if test="${tavern.column_tavern=='澧县'}">selected="true"</c:if>>澧县</option>
              <option value="石门县" <c:if test="${tavern.column_tavern=='石门县'}">selected="true"</c:if>>石门县</option>
              <option value="临澧县" <c:if test="${tavern.column_tavern=='临澧县'}">selected="true"</c:if>>临澧县</option>
            </select>
            <div class="tips"></div>
          </div>
        </div>
      <div class="form-group">
        <div class="label">
          <label>具体路线：</label>
        </div>
        <div class="field">
          <input type="text" class="input" name="tavern_path" value="${tavern.tavern_path }"/>
        </div>
      </div>
      <div class="form-group">
        <div class="label">
          <label>描述：</label>
        </div>
        <div class="field">
          <textarea id="textarea1" style="height:300px;max-height:400px;" name="tavern_describe">
    <p>${tavern.tavern_describe }</p>
</textarea>
          <div class="tips"></div>
        </div>
      </div> 


<!--这里引用jquery和wangEditor.js-->
<script type="text/javascript">
    // 获取元素
    var textarea = document.getElementById('textarea1');
    // 生成编辑器
    var editor = new wangEditor(textarea);
    editor.create();
</script>  
      <div class="form-group">
        <div class="label">
          <label></label>
        </div>
        <div class="field">
          <button class="button bg-main icon-check-square-o" type="submit"> 提交</button>
        </div>
      </div>
    </form>
  </div>
</div>
</body>
</html>